package inabit.data.expression.arithmetic;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import inabit.base.WorkingMemory;
/**@author Rafael Rocha*/
public class StringExpression implements ArithmeticExpression{

	private String value;
	public StringExpression(String value) {
		this.value = value;
	}
	@Override
	public String getResult(WorkingMemory wm) {
		return value;
	}

	@Override
	public String stringForm() {
		return "\"" + value + "\"";
	}
	@Override
	public Collection<String> getReferenced() {
		List<String> all = new ArrayList<String>();
		return all;
	}
	@Override
	public boolean isLeaf() {
		return true;
	}

}
